<?php
namespace app\common\controller;
use think\Loader;
use think\Controller;
use app\api\library\Auth;
class Frontend extends Controller
{
    protected $auth;
    protected $path;
    protected function _initialize()
    {
        $modulename = $this->request->module();
        $controllername = Loader::parseName($this->request->controller());
        $actionname = strtolower($this->request->action());
        $this->path = str_replace('.', '/', $controllername) . '/' . $actionname;
        $this->auth = Auth::instance();
    }

}